package com.adlotto2.lcdns.cronos.http;

import java.util.HashMap;

public class CNLangSet {
	private static final String LANGUAGE_DEFAULT = "KOR";
	private static HashMap<String, String> sLangTable = null;

	static {
		sLangTable = new HashMap<String, String>();

		sLangTable.put("ko", "KOR");
		sLangTable.put("KO", "KOR");
		sLangTable.put("en", "ENG");
		sLangTable.put("EN", "ENG");
		sLangTable.put("ja", "JPN");
		sLangTable.put("JA", "JPN");
		sLangTable.put("zh", "CHI");
		sLangTable.put("ZH", "CHI");
	}

	public static String getLangageCode(String language) {
		if (language != null) {
			return (String) sLangTable.get(language.toLowerCase());
		}

		return LANGUAGE_DEFAULT;
	}
}